export const startDate2 = '';
export const endDate2 = '';
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  selection: true,
  editBtn: false,
  delBtn: false,
  addBtn: true,
  viewBtn: true,
  emptyBtn:false,
  column: [{
    "type": "input",
    "label": "唯一标识",
    "prop": "id",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "流水号",
    "prop": "orderNum",
    display: false
  },{
    type: 'select',
    label: '票种',
    prop: 'cardType',
    dicUrl: '/support/swpmticketcardtype/dict',
    props: {
      label: 'mainName',
      value: 'mainEnName'
    },
    cascaderItem: ["cardTypeParam"],
    search: true,
    display: false
  }, {
    type: 'select',
    label: '车票名称',
    prop: 'cardTypeParam',
    dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
    props: {
      label: 'subName',
      value: 'subEnName'
    },
    dicFlag: false,
    search: true,
    display: false
  }, {
    "type": "select",
    "label": "调入线路",
    "prop": "inLineCode",
    search: true,
    cascaderItem: ["inStationCode"],
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: "/support/swparamline/dict",
    display: false
  }, {
    "type": "select",
    "label": "调入站点",
    "prop": "inStationCode",
    search: true,
    dicFlag: false,
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: "/support/swparamstation/dict/{{key}}",
    display: false
  }, {
    "type": "date",
    "label": "调入时间",
    "prop": "inTime",
    "format": "yyyy-MM-dd",
    "valueFormat": "yyyy-MM-dd",
    search: true,
    searchRange: true,
    searchSpan: 12,
    display: false
  }, {
    "type": "select",
    "label": "调出线路",
    "prop": "outLineCode",
    search: true,
    cascaderItem: ["outStationCode"],
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: "/support/swparamline/dict",
    display: false
  }, {
    "type": "select",
    "label": "调出站点",
    "prop": "outStationCode",
    search: true,
    dicFlag: false,
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: "/support/swparamstation/dict/{{key}}",
    display: false
  }, {
    "type": "date",
    "label": "调出时间",
    "prop": "outTime",
    "format": "yyyy-MM-dd",
    "valueFormat": "yyyy-MM-dd",
    search: true,
    //searchRange: true,
    searchslot:true,
    searchSpan: 12,
    display: false
  }, {
    "type": "number",
    "label": "金额",
    "prop": "money",
	precision: 2,
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "次数",
    "prop": "amount",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "计划数量",
    "prop": "outNumber",
    display: false
  }, {
    "type": "input",
    "label": "调出数量",
    "prop": "outToNumber",
    display: false
  }, {
    "type": "input",
    "label": "接收数量",
    "prop": "inNumber",
    display: false
  }, {
    "type": "input",
    "label": "调票原因",
    "prop": "cycleCase",
    display: false
  }, {
    "type": "input",
    "label": "调出人",
    "prop": "outPerson",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "调出人工号",
    "prop": "outPersonCode",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "申请表id用来自动确认接收更改状态",
    "prop": "applyId",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "接收人",
    "prop": "inPerson",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "接收人工号",
    "prop": "inPersonCode",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "操作人",
    "prop": "makePerson",
    display: false
  }, {
    "type": "input",
    "label": "操作人工号",
    "prop": "makePersonCode",
    "dicUrl": "/admin/user/page",
    "props": {
      label: "userCode",
      value: "userCode",
      res: "data.records"
    },
    "dicQuery": {
      size: -1,
      belongToLine: true
    },
    hide: true,
    display: false
  }, {
    "type": "datetime",
    "label": "操作时间",
    "prop": "makeTime",
    "format": "yyyy-MM-dd HH:mm:ss",
    "valueFormat": "yyyy-MM-dd HH:mm:ss",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "备注",
    "prop": "remark",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "申诉状态",
    "prop": "applyStatus",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "申诉原因",
    "prop": "applyCase",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "反馈信息",
    "prop": "backMessage",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "前端显隐",
    "prop": "isVisible",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "是否通知",
    "prop": "noticeStatus",
    display: false,
    dicData: [{
      label: '否',
      value: '0'
    }, {
      label: '是',
      value: '1'
    }]
  }, {
    "type": "input",
    "label": "调出确认通知状态",
    "prop": "isConfirmOut",
    hide: true,
    display: false,
    dicUrl: '/admin/dict/type/stm_cycle_notice_confirm',
  }, {
    "type": "input",
    "label": "调入确认通知状态",
    "prop": "isConfirmIn",
    hide: true,
    display: false,
    dicUrl: '/admin/dict/type/stm_cycle_notice_confirm',
  }, {
    "type": "select",
    "label": "办理状态",
    "prop": "handleStatus",
    //hide: true,
    display: false,
    dicUrl: '/admin/dict/type/stm_cycle_handle_status'
  }, {
    "type": "input",
    "label": "调出完成 0未完成 1已完成",
    "prop": "isOut",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "接收完成 0未完成 1已完成",
    "prop": "isIn",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "部门id",
    "prop": "deptId",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "创建人ID",
    "prop": "creatorId",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "创建人名称",
    "prop": "creatorName",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "创建时间",
    "prop": "createTime",
    "format": "yyyy-MM-dd HH:mm:ss",
    "valueFormat": "yyyy-MM-dd HH:mm:ss",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "更新时间",
    "prop": "updateTime",
    "format": "yyyy-MM-dd HH:mm:ss",
    "valueFormat": "yyyy-MM-dd HH:mm:ss",
    hide: true,
    display: false
  }],
  group: [{
    label: '调入信息',
    column: [{
      "type": "input",
      "label": "流水号",
      "prop": "orderNum",
      addDisplay: false,
      editDisabled: true
    }, {
      "type": "select",
      "label": "调入线路",
      "prop": "inLineCode",
      cascaderItem: ["inStationCode"],
      props: {
        label: 'name',
        value: 'code'
      },
      dicUrl: "/support/swparamline/dict",
      editDisabled: true,
      rules: [{
        required: true,
        message: '请选择调入线路'
      }]
    }, {
      "type": "select",
      "label": "调入站点",
      "prop": "inStationCode",
      dicFlag: false,
      props: {
        label: 'name',
        value: 'code'
      },
      dicUrl: "/support/swparamstation/dict/{{key}}",
      editDisabled: true,
      rules: [{
        required: true,
        message: '请选择调入站点'
      }]
    }, {
      "type": "select",
      "label": "票种",
      "prop": "cardType",
      cascaderItem: ["cardTypeParam"],
      props: {
        label: 'mainName',
        value: 'mainEnName'
      },
      dicUrl: '/support/swpmticketcardtype/dict',
      editDisabled: true,
      rules: [{
        required: true,
        message: '请选择票种'
      }]
    }, {
      "type": "select",
      "label": "车票名称",
      "prop": "cardTypeParam",
      props: {
        label: 'subName',
        value: 'subEnName'
      },
      dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
      editDisabled: true
    }, {
      "type": "number",
      "label": "计划数量",
      "prop": "outNumber",
      editDisabled: true,
      rules: [{
        required: true,
        message: '请输入计划数量'
      }]
    },{
      "type": "number",
      "label": "接收数量",
      "prop": "inNumber",
      addDisplay: false,
      editDisabled: true,
      rules: [{
        required: true,
        message: '请输入接收数量'
      }]
    }, {
      "type": "datetime",
      "label": "调入时间",
      "prop": "inTime",
      "format": "yyyy-MM-dd HH:mm:ss",
      "valueFormat": "yyyy-MM-dd HH:mm:ss",
    }, {
      "type": "input",
      "label": "调票原因",
      "prop": "cycleCase",
      //editDisabled: true
    }]
  }, {
    label: '调出信息',
    column: [{
      "type": "select",
      "label": "调出线路",
      "prop": "outLineCode",
      cascaderItem: ["outStationCode"],
      props: {
        label: 'name',
        value: 'code'
      },
      dicUrl: "/support/swparamline/dict",
      rules: [{
        required: true,
        message: '请选择调出线路'
      }]
    }, {
      "type": "select",
      "label": "调出站点",
      "prop": "outStationCode",
      dicFlag: false,
      props: {
        label: 'name',
        value: 'code'
      },
      dicUrl: "/support/swparamstation/dict/{{key}}",
      rules: [{
        required: true,
        message: '请选择调出调出站点'
      }]
    }, {
      "type": "select",
      "label": "操作人",
      "prop": "makePerson",
      component: 'user-select',
      dicQuery: {
        belongToLine: true
      },
      params: {
        userCodeKey: 'makePersonCode'
      },
      rules: [{
        required: true,
        message: '请选择操作人'
      }]
    }, {
      "type": "input",
      "label": "操作人工号",
      "prop": "makePersonCode",
      "placeholder": ' ',
      "disabled": true
    }, {
      "type": "datetime",
      "label": "调出时间",
      "prop": "outTime",
      "format": "yyyy-MM-dd HH:mm:ss",
      "valueFormat": "yyyy-MM-dd HH:mm:ss",
    },{
      "type": "number",
      "label": "调出数量",
      "prop": "outToNumber",
      addDisplay: false,
      editDisabled: true,
      rules: [{
        required: true,
        message: '请输入调出数量'
      }]
    }, {
      "type": "textarea",
      "label": "备注",
      "prop": "remark",
      "span": 24
    }]
  }]
}

export const editOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  selection: true,
  editBtn: false,
  delBtn: false,
  addBtn: true,
  viewBtn: true,
  column: [{
    "type": "input",
    "label": "唯一标识",
    "prop": "id",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "流水号",
    "prop": "orderNum",
    display: false
  }, {
    "type": "select",
    "label": "票种",
    "prop": "cardType",
    props: {
      label: 'mainName',
      value: 'mainEnName'
    },
    dicUrl: '/support/swpmticketcardtype/dict',
    display: false
  }, {
    "type": "select",
    "label": "调入线路",
    "prop": "inLineCode",
    search: true,
    cascaderItem: ["inStationCode"],
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: "/support/swparamline/dict",
    display: false
  }, {
    "type": "select",
    "label": "调入站点",
    "prop": "inStationCode",
    search: true,
    dicFlag: false,
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: "/support/swparamstation/dict/{{key}}",
    display: false
  }, {
    "type": "datetime",
    "label": "调入时间",
    "prop": "inTime",
    "format": "yyyy-MM-dd HH:mm:ss",
    "valueFormat": "yyyy-MM-dd HH:mm:ss",
    search: true,
    searchRange: true,
    searchSpan: 12,
    display: false
  }, {
    "type": "select",
    "label": "调出线路",
    "prop": "outLineCode",
    search: true,
    cascaderItem: ["outStationCode"],
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: "/support/swparamline/dict",
    display: false
  }, {
    "type": "select",
    "label": "调出站点",
    "prop": "outStationCode",
    search: true,
    dicFlag: false,
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: "/support/swparamstation/dict/{{key}}",
    display: false
  }, {
    "type": "datetime",
    "label": "调出时间",
    "prop": "outTime",
    "format": "yyyy-MM-dd HH:mm:ss",
    "valueFormat": "yyyy-MM-dd HH:mm:ss",
    search: true,
    searchRange: true,
    searchSpan: 12,
    display: false
  }, {
    "type": "number",
    "label": "金额",
    "prop": "money",
  precision: 2,
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "次数",
    "prop": "amount",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "计划数量",
    "prop": "outNumber",
    display: false
  }, {
    "type": "input",
    "label": "调票原因",
    "prop": "cycleCase",
    display: false
  }, {
    "type": "input",
    "label": "调出人",
    "prop": "outPerson",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "调出人工号",
    "prop": "outPersonCode",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "申请表id用来自动确认接收更改状态",
    "prop": "applyId",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "接收数量",
    "prop": "inNumber",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "接收人",
    "prop": "inPerson",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "接收人工号",
    "prop": "inPersonCode",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "操作人",
    "prop": "makePerson",
    display: false
  }, {
    "type": "input",
    "label": "操作人工号",
    "prop": "makePersonCode",
    "dicUrl": "/admin/user/page",
    "props": {
      label: "userCode",
      value: "userCode",
      res: "data.records"
    },
    "dicQuery": {
      size: -1,
      belongToLine: true
    },
    hide: true,
    display: false
  }, {
    "type": "datetime",
    "label": "操作时间",
    "prop": "makeTime",
    "format": "yyyy-MM-dd HH:mm:ss",
    "valueFormat": "yyyy-MM-dd HH:mm:ss",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "备注",
    "prop": "remark",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "申诉状态",
    "prop": "applyStatus",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "申诉原因",
    "prop": "applyCase",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "反馈信息",
    "prop": "backMessage",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "前端显隐",
    "prop": "isVisible",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "是否通知",
    "prop": "noticeStatus",
    display: false,
    dicData: [{
      label: '否',
      value: '0'
    }, {
      label: '是',
      value: '1'
    }]
  }, {
    "type": "input",
    "label": "调出确认通知状态",
    "prop": "isConfirmOut",
    hide: true,
    display: false,
    dicUrl: '/admin/dict/type/stm_cycle_notice_confirm',
  }, {
    "type": "input",
    "label": "调入确认通知状态",
    "prop": "isConfirmIn",
    hide: true,
    display: false,
    dicUrl: '/admin/dict/type/stm_cycle_notice_confirm',
  }, {
    "type": "select",
    "label": "办理状态",
    "prop": "handleStatus",
    hide: true,
    display: false,
    dicUrl: '/admin/dict/type/stm_cycle_handle_status'
  }, {
    "type": "input",
    "label": "调出完成 0未完成 1已完成",
    "prop": "isOut",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "接收完成 0未完成 1已完成",
    "prop": "isIn",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "部门id",
    "prop": "deptId",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "创建人ID",
    "prop": "creatorId",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "创建人名称",
    "prop": "creatorName",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "创建时间",
    "prop": "createTime",
    "format": "yyyy-MM-dd HH:mm:ss",
    "valueFormat": "yyyy-MM-dd HH:mm:ss",
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "更新时间",
    "prop": "updateTime",
    "format": "yyyy-MM-dd HH:mm:ss",
    "valueFormat": "yyyy-MM-dd HH:mm:ss",
    hide: true,
    display: false
  }],
  group: [{
    label: '调入信息',
    column: [{
      "type": "input",
      "label": "流水号",
      "prop": "orderNum",
      disabled: true
    }, {
      "type": "select",
      "label": "调入线路",
      "prop": "inLineCode",
      cascaderItem: ["inStationCode"],
      props: {
        label: 'name',
        value: 'code'
      },
      dicUrl: "/support/swparamline/dict",
      rules: [{
        required: true,
        message: '请选择调入线路'
      }]
    }, {
      "type": "select",
      "label": "调入站点",
      "prop": "inStationCode",
      dicFlag: false,
      props: {
        label: 'name',
        value: 'code'
      },
      dicUrl: "/support/swparamstation/dict/{{key}}",
      rules: [{
        required: true,
        message: '请选择调入站点'
      }]
    }, {
      "type": "select",
      "label": "票种",
      "prop": "cardType",
      cascaderItem: ["cardTypeParam"],
      props: {
        label: 'mainName',
        value: 'mainEnName'
      },
      dicUrl: '/support/swpmticketcardtype/dict',
      rules: [{
        required: true,
        message: '请选择票种'
      }]
    }, {
      "type": "select",
      "label": "车票名称",
      "prop": "cardTypeParam",
      props: {
        label: 'subName',
        value: 'subEnName'
      },
      dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
    }, {
      "type": "number",
      "label": "计划数量",
      "prop": "outNumber",
      rules: [{
        required: true,
        message: '请输入计划数量'
      }]
    }, {
      "type": "datetime",
      "label": "调入时间",
      "prop": "inTime",
      "format": "yyyy-MM-dd HH:mm:ss",
      "valueFormat": "yyyy-MM-dd HH:mm:ss",
    }, {
      "type": "input",
      "label": "调票原因",
      "prop": "cycleCase",
    }]
  }, {
    label: '调出信息',
    column: [{
      "type": "select",
      "label": "调出线路",
      "prop": "outLineCode",
      cascaderItem: ["outStationCode"],
      props: {
        label: 'name',
        value: 'code'
      },
      dicUrl: "/support/swparamline/dict",
      rules: [{
        required: true,
        message: '请选择调出线路'
      }]
    }, {
      "type": "select",
      "label": "调出站点",
      "prop": "outStationCode",
      dicFlag: false,
      props: {
        label: 'name',
        value: 'code'
      },
      dicUrl: "/support/swparamstation/dict/{{key}}",
      rules: [{
        required: true,
        message: '请选择调出调出站点'
      }]
    }, {
      "type": "select",
      "label": "操作人",
      "prop": "makePerson",
      component: 'user-select',
      dicQuery: {
        belongToLine: true
      },
      params: {
        userCodeKey: 'makePersonCode'
      },
      rules: [{
        required: true,
        message: '请选择操作人'
      }]
    }, {
      "type": "input",
      "label": "操作人工号",
      "prop": "makePersonCode",
      "placeholder": ' ',
      "disabled": true
    }, {
      "type": "datetime",
      "label": "调出时间",
      "prop": "outTime",
      "format": "yyyy-MM-dd HH:mm:ss",
      "valueFormat": "yyyy-MM-dd HH:mm:ss",
    }, {
      "type": "textarea",
      "label": "备注",
      "prop": "remark",
      "span": 24
    }]
  }]
}
